//
//  D_VConrtoller.swift
//  XNavigator_Example
//
//  Created by x on 2024/9/2.
//  Copyright © 2024 CocoaPods. All rights reserved.
//

import UIKit
import XNavigator

class D_VController: UIViewController {
//    @objc var name: String?
    var name: String?
    
    init(name: String? = nil) {
        super.init(nibName: nil, bundle: nil)
        self.name = name
    }
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    override func viewDidLoad() {
    
        let label = UILabel(frame: CGRect(x: 20, y: 200, width: 100, height: 100))
        label.text = name
        
        view.backgroundColor = .white
        self.view.addSubview(label)
    }
    
    deinit {
        print("D_VController ---- deinit")
    }
}


